#pragma once
#include "UIBase.h"
#include "../tools/RichTextEx.h"
class DepotUI : public UIBase
{
public:
	DepotUI();
	~DepotUI();
public:
	static cocos2d::Node* createNode();
	virtual bool init();
	CREATE_FUNC(DepotUI);
	Node* m_selectedNode;
	int m_selectedTouchID;
	bool m_isMove;
	bool m_isClicked;
	Sprite* m_CloseBtn;
	Node* m_itemContainer;
	vector<Sprite*> m_controlList;
	vector<Sprite*> m_bagIconList;
public:
	bool TouchDown(Touch* touch);
	void TouchMove(Touch* touch);
	bool TouchUp(Touch* touch);
	void ClickCallback(float dt, Node* node);			//点击回调
	void DoubleClickItem();					//双击
	void Open();							//打开
	void Close();							//关闭
	void RefreshData();						//刷新背包界面数据);
	void AddDepotItem(TClientItem* item);
};

